Xbasic

SQL::DeleteStatementParse Method

Syntax

Result_Flag as L = Parse([SQLStatement as C])

Arguments

Result_Flag

TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).

SQL::DeleteStatement

A SQL::DeleteStatement object.

SQLStatement

Optional. A Portable SQL statement.

Description

Parse the SQLStatement passed (or the value previously set into the SQLStatement property).

Discussion

The .Parse() method parses the SQL_Statement string (or the value previously set into the SQL::DeleteStatement.SQLStatement property).

Example

dim del as SQL::DeleteStatement
del.SQLstatement = "DELETE FROM Customer WHERE lastname > 'G'"
? del.parse()
= .T.

See Also